package day04.controller;

import service.AccountService;

import java.util.Scanner;

public class AccountController {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入转账人姓名:");
        String outName = scanner.next();
        System.out.println("请输入转入人姓名:");
        String inName = scanner.next();
        System.out.println("请输入转账金额:");
        int money = scanner.nextInt();

        AccountService accountService = new AccountService();
        accountService.transfer(outName,inName,money);
    }
}
